package com.xqls.dal.dao.mybatis;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.xqls.dal.dao.FluggasVocRecordDao;
import com.xqls.dal.model.FluggasVocRecord;
import com.xqls.dal.model.FluggasVocRecordExample;
import com.xqls.dal.service.FluggasVocRecordMapper;

@Repository
public class FluggasVocRecordDaoImpl implements FluggasVocRecordDao {

	@Autowired FluggasVocRecordMapper recordMapper;
	
	@Override
	public boolean insertRealdata(FluggasVocRecord record) {
		boolean isSuccess=false;
		if(this.recordMapper.insert(record)>0)
		{
			isSuccess=true;
		}
		return isSuccess;
	}

	@Override
	public List<Map<String, Object>> getListByMap(Map<String, Object> map) {
		return this.recordMapper.getListByMap(map);
	}

	@Override
	public List<FluggasVocRecord> getListByExample(FluggasVocRecordExample example) {
		return this.recordMapper.selectByExample(example);
	}

}
